
namespace ZR.Model.FacManage
{
    /// <summary>
    /// 库区信息
    /// </summary>
    [SugarTable("fac_whse")]
    [Tenant("0")]
    public class FacWhse
    {
        /// <summary>
        /// 库区id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "whse_id")]
        public string WhseId { get; set; }

        /// <summary>
        /// 库区编码（与wms同步） 
        /// </summary>
        [SugarColumn(ColumnName = "whse_code", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string WhseCode { get; set; }

        /// <summary>
        /// 库区名称 
        /// </summary>
        [SugarColumn(ColumnName = "whse_name", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string WhseName { get; set; }

        /// <summary>
        /// 启用标志（0禁用1启用） 
        /// </summary>
        [SugarColumn(ColumnName = "enabled", ExtendedAttribute = ProteryConstant.NOTNULL)]
        public int Enabled { get; set; }

        /// <summary>
        /// 所属工厂 
        /// </summary>
        [SugarColumn(ColumnName = "factory_id", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string FactoryId { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by", IsOnlyIgnoreUpdate = true, Length = 64)]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time", IsOnlyIgnoreUpdate = true)]

        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by", IsOnlyIgnoreInsert = true, Length = 64)]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time", IsOnlyIgnoreInsert = true)]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        [SugarColumn(ColumnName = "remark", Length = 500)]
        public string Remark { get; set; }

    }
}